package com.scalar.chiptrack.sales;


public class Orders {

  // ----------------------------------------------------- Instance Variables

  private String productName = null;
  private String customerName = null;
  private int salesOrderId = -1;
  private String customerPO = null;
  private String status = null;
  private String bookingDate = null;
  private String scheduleDate = null;
  private String revisedDate = null;
  private String salesOrderNo = null;

  private String expiryDate = null;

  private boolean isExpire = false;
  // Indicates whether atleast one line item is approved or not
  private boolean isApproved = false;
  private boolean isClosed = false;
  private boolean isCancel = false;

  private boolean isTotallyApproved = false;

  private boolean isTotallyTransferred = false;
    private String endCustomerName;
    private String endUserName;
    private int qty;
    private double unitPrice;
    private double suggResalePrice;
    private String quoteType;
    private String newEndUserName;
    private String newEndCustomerName;

  /**
   * Default Constructor
   *
   */
  public Orders() {

  }

  /**
   * Constructor
   *
   */
  public Orders(String productName, String customerName, int salesOrderId, String status,
                    String bookingDate)
  {
           this.productName = productName;
           this.customerName = customerName;
           this.salesOrderId = salesOrderId;
           this.status = status;
           this.bookingDate = bookingDate;
  }

  // ----------------------------------------------------- Getter methods
  
  public String getProductName()
  {
      return productName;
  }
  
  public void setProductName(String productName)
  {
      this.productName = productName;
  }
  
  public String getCustomerName()
  {
      return customerName;
  }
  
  public void setCustomerName(String customerName)
  {
      this.customerName = customerName;
  }
  
  public int getSalesOrderId()
  {
      return salesOrderId;
  }
  
  public void setSalesOrderId(int salesOrderId)
  {
      this.salesOrderId = salesOrderId;
  }
  
  public String getStatus()
  {
      return status;
  }
  
  public void setStatus(String status)
  {
      this.status = status;
  }
  
  public String getBookingDate()
  {
      return bookingDate;
  }
  
  public void setBookingDate(String bookingDate)
  {
      this.bookingDate = bookingDate;
  }
  
  public String getScheduleDate() 
  {
      return scheduleDate;
  }
  
  public void setScheduleDate(String scheduleDate)
  {
      this.scheduleDate = scheduleDate;
  }
  
  public String getRevisedDate() 
  {
      return revisedDate;
  }
  
  public void setRevisedDate(String revisedDate)
  {
      this.revisedDate = revisedDate;
  }
   
  public String getCustomerPO()
  {
      return customerPO;
  }
  
  public void setCustomerPO(String customerPO)
  {
      this.customerPO = customerPO;
  }

  public String getSalesOrderNo()
  {
      return salesOrderNo;
  }
  
  public void setSalesOrderNo(String salesOrderNo)
  {
      this.salesOrderNo = salesOrderNo;
  }

    public String getExpiryDate(){
        return expiryDate;
    }

    public void setExpiryDate(String expiryDate){
        this.expiryDate = expiryDate;
    }

    public void setIsExpire(boolean isExpire){
        this.isExpire = isExpire ;
    }
    public boolean getIsExpire() {
        return isExpire;
    }
    public boolean getIsApproved ()
    {
        return isApproved;
    }

    public void setIsApproved ( boolean isApproved )
    {
        this.isApproved = isApproved;
    }

    public boolean getIsClosed ()
    {
        return isClosed;
    }

    public void setIsClosed ( boolean isClosed )
    {
        this.isClosed = isClosed;
    }

    public boolean getIsTotallyApproved()
    {
        return isTotallyApproved;
    }
    public void setIsTotatallyApproved(boolean isTotallyApproved)
    {
        this.isTotallyApproved = isTotallyApproved;
    }
    // Added by veeru on 8th June 2004
    public boolean getIsTotallyTransferred() {
        return isTotallyTransferred;
    }

    public void setIsTotallyTransferred(boolean totallyTransfered) {
        isTotallyTransferred = totallyTransfered;
    }


    public double getSuggResalePrice() {
        return suggResalePrice;
    }

    public void setSuggResalePrice(double suggResalePrice) {
        this.suggResalePrice = suggResalePrice;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }

    public String getEndUserName() {
        return endUserName;
    }

    public void setEndUserName(String endUserName) {
        this.endUserName = endUserName;
    }

    public String getEndCustomerName() {
        return endCustomerName;
    }

    public void setEndCustomerName(String endCustomerName) {
        this.endCustomerName = endCustomerName;
    }

    public String getQuoteType() {
        return quoteType;
    }

    public void setQuoteType(String quoteType) {
        this.quoteType = quoteType;
    }


    public String getNewEndUserName() {
        return newEndUserName;
    }

    public void setNewEndUserName(String newEndUserName) {
        this.newEndUserName = newEndUserName;
    }

    public String getNewEndCustomerName() {
        return newEndCustomerName;
    }

    public void setNewEndCustomerName(String newEndCustomerName) {
        this.newEndCustomerName = newEndCustomerName;
    }


    public boolean isCancel() {
        return isCancel;
    }

    public void setCancel(boolean cancel) {
        isCancel = cancel;
    }
}